import request from '@/utils/request'

// 查询传统文化列表
export function listCultures(query) {
  return request({
    url: '/TraditionalCultureSys/cultures/list',
    method: 'get',
    params: query
  })
}

// 查询传统文化详细
export function getCultures(id) {
  return request({
    url: '/TraditionalCultureSys/cultures/' + id,
    method: 'get'
  })
}

// 新增传统文化
export function addCultures(data) {
  return request({
    url: '/TraditionalCultureSys/cultures',
    method: 'post',
    data: data
  })
}

// 修改传统文化
export function updateCultures(data) {
  return request({
    url: '/TraditionalCultureSys/cultures',
    method: 'put',
    data: data
  })
}

// 删除传统文化
export function delCultures(id) {
  return request({
    url: '/TraditionalCultureSys/cultures/' + id,
    method: 'delete'
  })
}
